package com.ehais.api;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import java.util.concurrent.TimeUnit;

import okhttp3.OkHttpClient;


/**
 * Created by 小爱哥 on 2018/4/28.
 */

public class ApiRetrofit {
    public static Boolean debug = true;
    //    public static final String BASE_SERVER_URL="http://www.jiyuetech.cn/";//原江西服务器
//    public static final String BASE_SERVER_URL="http://120.79.36.102:8080/";//公司线上测试服务器
//    public static final String BASE_SERVER_URL="http://120.78.90.4:8080/";//公司线上江西服务器
        public static final String BASE_SERVER_URL="http://192.168.101.209:8080/";//本地诗缘
//    public static final String BASE_SERVER_URL="http://e8gebj.natappfree.cc/";
//    public static final String APK_DOWNLOAD_URL="http://www.jiyuetech.cn/bai/app/downloads";
    public static final String APK_DOWNLOAD_URL="http://120.79.36.102:8080/bai/app/downloads";
//    public static final String APK_DOWNLOAD_URL="http://120.78.90.4:8080/bai/app/downloads";
    //    public static final String FILE_DOWNLOAD_URL="http://47.106.244.54:8088";
    public static final String FILE_DOWNLOAD_URL="http://120.79.36.102:8088";
//    public static final String FILE_DOWNLOAD_URL="http://120.78.90.4:8088";
    //    public static final String FILE_DOWNLOAD_URL="http://192.168.101.179:8088";
    private static ApiRetrofit apiRetrofit;
    private ApiService apiService;
    private OkHttpClient okHttpClient;

    public static ApiRetrofit getApiRetrofit(){
        if (apiRetrofit==null){
            synchronized (ApiRetrofit.class){
                if (apiRetrofit==null){
                    apiRetrofit=new ApiRetrofit();
                }
            }
        }
        return apiRetrofit;
    }


}
